package  utils
import (
    "os"
)





func CheckFileIsExist(filename string) bool {
    var exist= true
    if _, err := os.Stat(filename); os.IsNotExist(err) {
        exist = false
    }
    return exist

}


func CreateFile(filePath string)  error {
    if !CheckFileIsExist(filePath) {
        err := os.MkdirAll(filePath, os.ModePerm)
        return err
    }
    return nil
}
